<?php
$this->title = "Index Language |";
$this->headTitle($this->title);
?>
<form method="post" action="<?php echo $this->url(array('module'=>'admin', 'controller' => 'language', 'action' => 'index')); ?>">
	<p id="adminlist-topcontrol">
		<a class="AddNewHoOrHBLink" href="<?php echo $this->url(array('module'=>'admin', 'controller'=>'language',
			'action'=>'add', 'page' => null, "limit"=> null));?>">Add new language</a>
	</p>
	<table class="adminlist" border="1px">
			<thead>
				<?php
					// Display pagination control
					echo $this->paginationControl($this->paginator, 'Sliding', '/partials/paginator.phtml', array("colspan" => 7));
				?>			
				<tr>				
					<th width="5%">
						LanguageID
					</th>
					<th width="15%">
						Language
					</th>
					<th width="13%">
						Show In Source
					</th>
					<th width="13%">
						Show in Target
					</th>	
					<th width="13%">
						Show in Translator
					</th>	
					<th width="5%">
						LanguageIsActive	
					</th>	
					<th width="15%">
						&nbsp;
					</th>
				</tr>
			</thead>
			<tfoot>
				<?php
					// Display pagination control
					echo $this->paginationControl($this->paginator, 'Sliding', '/partials/paginator.phtml', array("colspan" => 7));
				?>			
			</tfoot>
			<tbody>
				<?php 
					if ( 0 == count($this->resultSet)){
						echo $this->partial('/partials/paginator_nodata.phtml', array("colspan" => 7));
					}				
				?>
				<?php foreach($this->resultSet as $language ):?>
				<tr>	
					<td class="center">
						<?php echo $this->escape($language->LanguageId);?>
					 </td>
					<td class="center">
						<?php echo $this->escape($language->LanguageName);?>				
					</td>			
					<td class="center">
						<?php echo $this->escape($language->LanguageIsShowInSourceList);?>				
					</td>					
					<td class="center">
						<?php echo $this->escape($language->LanguageIsShowInTargetList);?>				
					</td>
					<td class="center">
						<?php echo $this->escape($language->LanguageIsShowInTranslatorlist);?>				
					</td>		
					<td class="center">
						<?php echo $this->escape($language->LanguageIsActive);?>				
					</td>
					<td class="center">			
						<a href="<?php echo $this->url(array('module'=>'admin', 'controller'=>'language', 'action'=>'edit',
						'languageid'=>$this->escape($language->getLanguageId()), 'page' => null, "limit"=> null));?>">Edit</a> |
						<a href="<?php echo $this->url(array('module'=>'admin', 'controller'=>'language','action'=>'delete',
						'languageid'=>$this->escape($language->getLanguageId()), 'page' => null, "limit"=> null));?>">Delete</a>
					</td>
				</tr>		
				<?php endforeach;?>
			</tbody>
	</table>
</form>	